package com.itheima.dubbo.api;

import com.itheima.model.enums.VideoType;
import com.itheima.model.mongo.Comment;
import com.itheima.model.mongo.FocusUser;
import com.itheima.model.mongo.Video;

import java.util.List;

public interface VideoApi {
    String save(Video video);

    List<Video> finByVids(List<Long> vids);

    List<Video> findRandom(int page, Integer pagesize);

    Boolean hasVideo(Long userFocusId, Long userId, VideoType type);

    void delete(Long userId, Long followUserId);

    //判断是否点赞
    Boolean hasLike(String id, Long userId, VideoType like);

    //点赞
    void updateById(String id);

    //取消点赞
    void deteleById(String id);


    void saveFocusUser(FocusUser focusUser);


    List<Video> findById(Long uid, Integer page, Integer pagesize);

    Long count(Long uid);

    void saveComment(Comment comment);
    Long countType(Integer type);

}

